package com.foreknow.ComputerGame;

/**
 * 电脑类
 */

public class Computer {
    String name = "电脑";//名字
    int score = 0;//表示积分

    public int shouwFirst(){
        //要产生一个随机数
        int show =(int) (Math.random()*10)%3+1;
        switch (show){
            case 1 :
                System.out.println("出拳：剪刀");
                break;
            case 2 :
                System.out.println("出拳：石头");
                break;
            case 3 :
                System.out.println("出拳：布");
                break;

        }
        return show;
    }
}
